package org.grow.bill.service;

import org.grow.bill.domain.LeaveBill;
import org.grow.bill.service.impl.CodeServiceFImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: xwg
 * @Date: 2025/10/13
 */
//@RequestMapping("/code")
@FeignClient(value = "UTIL",fallback = CodeServiceFImpl.class)
public interface CodeServiceF {
//    路径不能少 注解不能省
    @GetMapping("/code/next")
    String next(@RequestParam("prefix")String prefix);
//    日志调试
//    openfeign
//     openfeign携带token  ；；； openfeign远程调用失败的备用方案 熔断器
//
}
